package com.dhms.vostok1.data.abnormals

import com.squareup.moshi.Json

/**
 *
 * @param id  唯一标识id，类似 uuid
 * @param name  异常项名称
 * @param deviceId
 * @param deviceName
 * @param status  处理状态： observing, handled, occurred
 * @param source  异常上报的来源：？
 * @param reportTime
 */

data class SpotAbnormalOverviewData(
    /*  唯一标识id，类似 uuid */
    @Json(name = "id")
    val id: String,
    /*  异常项名称 */
    @Json(name = "name")
    val name: String,
    @Json(name = "device_id")
    val deviceId: Long,
    @Json(name = "device_name")
    val deviceName: String,
    /*  处理状态： observing, handled, occurred */
    @Json(name = "status")
    val status: FaultState,
    /*  异常上报的来源：？ */
    @Json(name = "source")
    val source: SpotSource,
    @Json(name = "report_time")
    val reportTime: String
)

